package com.lfp.entities;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description TODO
 * @Author lfp
 * @Date 2021/6/10 14:20
 * @Version 1.0
 */
@Data
public class User implements Serializable {

    @NotNull(message = "uid不能为空")
    @Min(value = 1, message = "pid必须为正整数")
    private Long uid;

    @NotBlank(message = "userName不能为空")
    private String userName;

    @NotBlank(message = "address 不能为空")
    private String address;
}
